OpenBSD: don't include malloc.h
authorAntoine Jacoutot <ajacoutot@gnome.org>
Thu, 13 Aug 2020 15:48:34 +0000 (17:48 +0200)
committerAntoine Jacoutot <ajacoutot@gnome.org>
Thu, 13 Aug 2020 15:48:34 +0000 (17:48 +0200)
This header doesn't exist anymore on recent OpenBSD releases.

gtk/roaring/roaring.h

index 26ab1bd4dc6fd6e4638821d19e7e681bcc5e5c6d..db04db5ae6e24ef84c5a53d31a313379d9d27305 100644 (file)
@@ -58,7 +58,7 @@ enum {
 #include <stdbool.h>
 #include <stdint.h>
 #include <stdlib.h>  // will provide posix_memalign with _POSIX_C_SOURCE as defined above
-#if !(defined(__APPLE__)) && !(defined(__FreeBSD__))
+#if !(defined(__APPLE__)) && !(defined(__FreeBSD__)) && !(defined(__OpenBSD__))
 #include <malloc.h>  // this should never be needed but there are some reports that it is needed.
 #endif